package org.snia.cdmi.model;

/**
 * 容器的状态
 * 
 * @author w90003273
 *
 */
public enum ContainerStatus{
	Working (0),	//正常状态
	Moving(-1),		//迁移状态
	Releasing(-2);	//删除状态
	
    private final int state;

    private ContainerStatus(int state) {
        this.state = state;
    }
    
    /* (non-Javadoc)
     * @see java.lang.Enum#toString()
     */
    @Override
    public String toString() {
        return String.valueOf(this.state);
    }
    
    public int getValue() {
        return this.state;
    }
}
